
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TasktypeTasktypeCfg : public ManualSingleton <TasktypeTasktypeCfg>
{
	friend ManualSingleton <TasktypeTasktypeCfg>;
public:
	TasktypeTasktypeCfg();
	~TasktypeTasktypeCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TasktypeTasktypeCfgInfo *GetTasktypeTasktypeCfgInfo(int32_t tasktypeID);
	const TasktypeTasktypeCfgMap *GetTasktypeTasktypeCfgMap() { return &m_TasktypeTasktypeCfgMap; }
private:
	TasktypeTasktypeCfgMap m_TasktypeTasktypeCfgMap;
};

#define  g_MakeTasktypeTasktypeCfgTable() (TasktypeTasktypeCfg::Instance())
#define  g_GetTasktypeTasktypeCfgTable() (TasktypeTasktypeCfg::GetInstance())
#define  g_DelTasktypeTasktypeCfgTable() (TasktypeTasktypeCfg::Destroy())